package cn.edu.zut.cs.Model;

import org.springframework.stereotype.Component;

import java.util.Date;
@Component
public class Parking {
    private int LotID;
    private String CarID;
    private String LeaveTime;
    private String ArriveTime;
    private float Pay;
    private int ParkingNumber;

    public int getLotID() {
        return LotID;
    }

    public void setLotID(int lotID) {
        LotID = lotID;
    }

    public String getCarID() {
        return CarID;
    }

    public void setCarID(String carID) {
        CarID = carID;
    }

    public String getLeaveTime() {
        return LeaveTime;
    }

    public void setLeaveTime(String leaveTime) {
        LeaveTime = leaveTime;
    }

    public String getArriveTime() {
        return ArriveTime;
    }

    public void setArriveTime(String arriveTime) {
        ArriveTime = arriveTime;
    }

    public float getPay() {
        return Pay;
    }

    public void setPay(float pay) {
        Pay = pay;
    }

    public int getParkingNumber() {
        return ParkingNumber;
    }

    public void setParkingNumber(int parkingNumber) {
        ParkingNumber = parkingNumber;
    }

    @Override
    public String toString() {
        return "Parking{" +
                "LotID=" + LotID +
                ", CarID='" + CarID + '\'' +
                ", LeaveTime='" + LeaveTime + '\'' +
                ", ArriveTime='" + ArriveTime + '\'' +
                ", Pay=" + Pay +
                ", ParkingNumber=" + ParkingNumber +
                '}';
    }
}
